solution of PDEs by direct integration